/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author YDZ
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface SrmU8BoxDataDp extends BasicModel<SrmU8BoxDataDp> {
  invbarcode?: string; // 单品码
  boxbarcode?: string; // 箱码
  cinvname?: string; // 物料名称
  bachnum?: string; // 批次
  scdate?: string; // 生产日期
  ckcode?: string; // 出库单号
  cdlcode?: string; // 发货单号
  ccusname?: string; // 客户名称
  cexpressconame?: string; // 物料公司
  cebexpresscode?: string; // 物料单号
  qty?: number; // 发货灌数
}

export const srmU8BoxDataDpList = (params?: SrmU8BoxDataDp | any) =>
  defHttp.get<SrmU8BoxDataDp>({ url: adminPath + '/report/box/srmU8BoxDataDp/list', params });

export const srmU8BoxDataDpListData = (params?: SrmU8BoxDataDp | any) =>
  defHttp.post<Page<SrmU8BoxDataDp>>({ url: adminPath + '/report/box/srmU8BoxDataDp/listData', params });

export const srmU8BoxDataDpForm = (params?: SrmU8BoxDataDp | any) =>
  defHttp.get<SrmU8BoxDataDp>({ url: adminPath + '/report/box/srmU8BoxDataDp/form', params });

export const srmU8BoxDataDpSave = (params?: any, data?: SrmU8BoxDataDp | any) =>
  defHttp.postJson<SrmU8BoxDataDp>({ url: adminPath + '/report/box/srmU8BoxDataDp/save', params, data });

export const srmU8BoxDataDpDelete = (params?: SrmU8BoxDataDp | any) =>
  defHttp.get<SrmU8BoxDataDp>({ url: adminPath + '/report/box/srmU8BoxDataDp/delete', params });
